# 赋值运算符使用所示
a: int = 8  # 直接赋值
a += 2  # 相当于a=a+2
print(a)
a -= 2  # 相当于a=a-2
print(a)
a *= 2  # 相当于a=a*2
print(a)
a /= 2  # 相当于a=a/2
print(a)
# 比较运算符
a = 2
b = 11
print(a == b)
print(a != b)
print(a > b)
print(a < b)
print(a >= b)
print(a <= b)
# 逻辑运算符使用所示
print(True and False)
print(True and True)
print(True or False)
print(not False)
# 成员运算符
stat1: str = "hello"
print('h' in stat1)
print('a' in stat1)
print('c' not in stat1)
print('o' not in stat1)
